package GuiClasses;
/**
 * TCSS 360 - Project
 */

import java.awt.EventQueue;

import objectClasses.User;

import javax.swing.JFrame;

/**
 *  Driver Class for program.  Instantiates a BeWeave frame and holds data.
 *  
 *  @author Abraham Santini
 */

public class GuiMain {
	private static User my_user;
	private static BeWeaveFrame my_frame;

	/**
	 * The main method.  Invokes a BeWeaveFrame.
	 * Command line args are ignored
	 * @param args command line arguments
	 */
	public static void main(String[] args){
		User.InitializeEncryption();

		EventQueue.invokeLater(new Runnable()
		{
			public void run() {
				my_frame = new BeWeaveFrame();	
			}
		});



	}
/**
 * Gets the current user
 * @return my_user
 */
	public static User getUser() {
		return my_user;
	}
/**
 * Sets my_user to the current user.
 * @param the_user The current user.
 */
	public static void setUser(User the_user) {
		my_user = the_user;
	}

}
